package com.nopcomm.pages;

import org.openqa.selenium.By;

import com.nopcomm.abstractPage;

public class ConsumerSearchPage extends abstractPage {

	public void gotoConsumer(String Email,String FirstName,String LastName,
			String Company,String Month,String Year,String role){
		//navigate to customers
		driver.findElement(By.linkText("Customers")).click();
		//search by Email
		driver.findElement(By.id("SearchEmail")).sendKeys(Email);
		//search by First Name
		driver.findElement(By.id("SearchFirstName")).sendKeys(FirstName);
		//search by Last Name
		driver.findElement(By.id("SearchLastName")).sendKeys(LastName);
		//Search by Company
		driver.findElement(By.id("SearchCompany")).sendKeys(Company);
		//Search by date
		driver.findElement(By.id("SearchMonthOfBirth")).sendKeys(Month);
		//Search by Year
		driver.findElement(By.id("SearchDayOfBirth")).sendKeys(Year);
		//Search by roles
//	   if(driver.findElement(By.name("SearchCustomerRoleIds"))Com
//	   r.sendKeys(role);
//	   r.click();
//      
	}
	

}
